<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="java.util.regex.Matcher" import="java.util.regex.Pattern" %>
<%@ page import="ookweb.Str"%>
  <%
ResultSet rsc=con.getRs("select iid,title,keyword,info,classid,content from web_info where iid="+iid);
try{
     if(rsc.next()){ %>
     <table width="100%" border="0" cellpadding="0" cellspacing="0">
                 <tr>
                   <td height="50" style="background:url(images/lanbt.gif) no-repeat" ><table width="100%" border="0">
                     <tr>
                       <td width="30%" height="26" valign="bottom" class="redbt"><%=rsc.getString("title") %></td>
                       <td width="70%" align="right" valign="bottom"  class="locationstr"><!--<a href="<%=basePath%>">首页 </a>&gt; <%=rsc.getString("title") %>--></td>
                     </tr>
                   </table></td>
                 </tr>
  </table>
  <div>&nbsp;</div>
  <div align="center" >
     <table width="80%" border="0" align="center" cellpadding="8" style="background:url(images/map.gif) no-repeat right bottom" >
     <% 
       
        String info= rsc.getString("info");
     if(!("null".equals(info) || "".equals(info) || info==null)){ %>
	      <tr>
             <td ><div class="jj"><%=info %></div></td>
       </tr>
           <%} %>
           <tr>
             <td ><div class="txt" style=" text-align:left;"><%
             String pages=request.getParameter("pages");
             if("".equals(pages) || "null".equals(pages) || pages==null){
             pages="1";
             }
oracle.sql.CLOB clob=(oracle.sql.CLOB)rsc.getClob("content");
String content= Str.parse(clob);             


Pattern p= Pattern.compile("<div style=\"page-break-after: always;?\">\\s*<span style=\"display: none;?\">&nbsp;</span>\\s*</div>");
String[] arr=p.split(content);
int nums=arr.length;
if(nums>0){
content=arr[Integer.parseInt(pages)-1];
}
out.print(content);
 %></div>

 </td>
           </tr>
           <%if(nums>1){ %>
            <tr>
             <td align="center"> <div class="pagelist"><%String pagehtml=con.getPage(Integer.parseInt(pages),nums,nums,"?a=a");
out.print(pagehtml); %></div></td>
           </tr>
           <%} %>
  </table>
  &nbsp;</div>
<% }
rsc.close();
}catch(Exception e){ }
%>

